/**
 * ${comment}
 * @author ${author}
 * @date ${date}
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
import { <#if imports.baseEntity??>${imports.baseEntity}, </#if>IConfigSchema } from '@/soar';

export interface ${modelName}<#if imports.baseEntity??> extends ${imports.baseEntity}</#if> {
<#list wl as x>
  /** ${x.label} */
  ${x.field}?: any;
</#list>
}

const fieldList: IConfigSchema<${modelName}>[] = [
<#list wl as x>
  <#if x.enabled>
  {
    field: '${x.field}',
    label: '${x.label}',
    dataType: '${x.dataType}',
    <#if x.params??>
    params: ${x.params}
    </#if>
    <#if x.table??>
    table: ${x.table}
    </#if>
    <#if x.search??>
    search: ${x.search}
    </#if>
    <#if x.form??>
    form: ${x.form}
    </#if>
    <#if x.detail??>
    detail: ${x.detail}
    </#if>
  },
  </#if>
</#list>
];

export default fieldList;
